# -*- coding: UTF-8 -*-
from server.model import Base
from sqlalchemy.sql.functions import now
from sqlalchemy import Column, BigInteger, String, DateTime


class ExaCustomers(Base):
    __tablename__ = 'exa_customers'
    id = Column(BigInteger, primary_key=True, nullable=False, doc='')
    customer_name = Column(String(191), doc='客户名')
    customer_phone_data = Column(String(191), doc='客户手机号')
    sys_user_id = Column(BigInteger, doc='管理ID')
    sys_user_authority_id = Column(String(191), doc='管理角色ID')
    created_at = Column(DateTime, default=now(), doc='')
    updated_at = Column(DateTime, default=now(), doc='')
    deleted_at = Column(DateTime, index=True, doc='')
